<ul class="calender-list" >
<?
if(is_array($records )){
foreach ($records as $r ){ ?>
  <li>
    <div>uid <?=$r['uid']?></div>
    <div>用户 <?=$r['uname']?></div>
    <div>日期 <?=$r['date']?></div>
    <div>日程 <?=$r['task']?></div>
    <div>
      <a href="/calender/view/<?=$r['id']?>" >查看</a>
      <a href="/calender/edit/<?=$r['id']?>" >编辑</a> 
    </div>
  </li>
<?  }
}?>
</ul>
<?=$pagination?>